package threads;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author boomar
 */
public class Tache extends Thread {

    private String phrase;
    private int millis;

    public Tache() {
    }

    public Tache(String phrase) {
        this.phrase = phrase;
    }

    public Tache(String phrase, int millis) {
        this.phrase = phrase;
        this.millis = millis;
    }

    @Override
    public void run() {
        try {
            Thread.sleep(millis);
        } catch (InterruptedException ex) {
            Logger.getLogger(Tache.class.getName()).log(Level.SEVERE, null, ex);
        }
        System.out.println(phrase);


    }
}
